home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / 4dostool / tfc22c.zip / DECP.BTM next >
Text File  |  1993-11-03  |  1KB  |  35 lines

  1. setlocal
  2. iff "%1" ne "a:" .AND. "%1" ne "b:" then
  3. echo.
  4. echo %@name[%0] by Tobias Oetiker -- oetiker@stud.ee.ethz.ch 
  5. echo                            or 2:301/516.4@fidonet
  6. echo.
  7. echo Usage: %@name[%0] x: [/K]
  8. echo.
  9. echo  x - is the Floppy-Drive
  10. echo /K - remove all corresponding files on the harddisk.
  11. echo.
  12. text
  13. DEscription CoPy:
  14. ^^^^^^^^^^^^^^^^^
  15. endtext
  16. echo %@name[%0] searches the current directory for files which are also on the 
  17. echo specified Floppy-Disk Drive. It copies the descriptions from the
  18. echo files in current Directory to the correponding Files on the Floppy-Disk.
  19. echo.
  20. quit
  21. ENDIFF
  22. for %file in (%1*.*) DO (
  23.  set name=%@name[%file].%@ext[%file]
  24.  IFF exist %name THEN
  25.    IFF "%@filesize[%file,b]"=="%@filesize[%name,b]" THEN
  26.      IFF "%@filedate[%file]"=="%@filedate[%name]" THEN
  27.        IFF "%@filetime[%file]"=="%@filetime[%name]" THEN
  28.              describe %file "%@descript[%name]"
  29.              if "%@upper[%2]"=="/K" del %name /q
  30.        ENDIFF
  31.      ENDIFF
  32.    ENDIFF
  33.  ENDIFF )
  34. endlocal
  35.